CC := arm-buildroot-linux-gnueabihf-gcc
CFLAGS := -c -o
TARGET := touchscreen

LIB := -lts -lm     #-lrt


all : $(TARGET)
	cp $(TARGET) ~/nfs_rootfs/

$(TARGET) : track.o gesture.o
	$(CC) -o $@ $^ $(LIB)


%.o : %.c
	$(CC) $(CFLAGS) $@ $<

clean:
	rm -f *.o
	rm -f $(TARGET)
	rm -f ~/nfs_rootfs/$(TARGET)